package com.jxstyle.core.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jxstyle.core.security.BCryptPasswordEncoder;

@Component
public class PasswordUtil {

	@Autowired
	private BCryptPasswordEncoder bCryptPasswordEncoder;
	
	public String encode(String password) {
		return bCryptPasswordEncoder.encode(password);
	}
}
